<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>党建后台</title>
    <meta name="keywords"  />
    <meta name="description"  />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/identify.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/layout.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/account.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/style.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/control_index.css" />
    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/index.css" />

    <link rel="stylesheet" type="text/css" href="/dangjian/Public/Admin/Css/page.css" />

    <script type="text/javascript" src="/dangjian/Public/Admin/Js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/dangjian/Public/layui/layui.js"></script>
    <script type="text/javascript" src="/dangjian/Public/Admin/Js/layer/layer.js"></script>
    <script type="text/javascript" src="/dangjian/Public/Admin/Js/haidao.offcial.general.js"></script>
    <script type="text/javascript" src="/dangjian/Public/Admin/Js/select.js"></script>
    <script type="text/javascript" src="/dangjian/Public/Admin/Js/haidao.validate.js"></script>

    <script type="text/javascript" charset="utf-8" src="/dangjian/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/dangjian/Public/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/dangjian/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>

<body>

    <!--<div class="view-product" style="margin-top: 50px">-->
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con"><?php echo ($title); ?></h6>
            </div>
            <a href="<?php echo ($prevUrls); ?>" class="layui-btn layui-btn-normal" style="margin: 20px 0 0 20px">返回上一页</a>
            <div class="layui-container" style="margin-top: 20px; font-size: 20px">
                <!--id-->
                <div class="layui-row">
                    <!--<div class="demoTable">-->
                        <!--<a href="<?php echo ($prevUrls); ?>" class="layui-btn layui-btn-normal">返回上一页</a>-->
                    <!--</div>-->
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">ID:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo['id']); ?></div>
                    </div>
                </div>
                <!--用户名-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">用户名:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo["name"]); ?></div>
                    </div>
                </div>
                <!--性别-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">性别:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo['sex'] == 0 ? "女" : "男"); ?></div>
                    </div>
                </div>
                <!--职位-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">职位:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo["category_name"]); ?></div>
                    </div>
                </div>
                <?php if(($userInfo["group_name"]) != ""): ?><div class="layui-row" style="margin-top: 20px">
                        <div class="layui-col-xs2">
                            <div class="grid-demo grid-demo-bg1 text-right">小组:</div>
                        </div>
                        <div class="layui-col-xs-offset1 layui-col-xs4">
                            <div class="grid-demo"><?php echo ($userInfo["group_name"]); ?></div>
                        </div>
                    </div><?php endif; ?>
                <!--状态-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">状态:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo['status'] == 0 ? "预备党员" : "正式党员"); ?></div>
                    </div>
                </div>
                <!--级别-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">级别:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <?php $star = $userInfo['level']%5; ?>
                            <?php $jewel = floor($userInfo['level']/5); ?>

                            <?php if(($jewel) != "0"): $__FOR_START_13140__=0;$__FOR_END_13140__=$jewel;for($i=$__FOR_START_13140__;$i < $__FOR_END_13140__;$i+=1){ ?><i class="layui-icon" style="color: red;">&#xe735;</i>&nbsp;<?php } endif; ?>
                            <?php if(($star) != "0"): $__FOR_START_8957__=0;$__FOR_END_8957__=$star;for($i=$__FOR_START_8957__;$i < $__FOR_END_8957__;$i+=1){ ?><i class="layui-icon" style="color: red">&#xe658;</i>&nbsp;<?php } endif; ?>
                        </div>
                    </div>
                </div>
                <!--入党时间-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">入党时间:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <?php if(($userInfo['join_time']) == "0000-00-00 00:00:00"): ?>未入党
                            <?php else: ?>
                                <?php echo substr($userInfo['join_time'],0,10); endif; ?>
                            <!--<?php echo strtotime($userInfo['join_time']);?>-->
                        </div>
                    </div>
                </div>
                <!--身份证号-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">身份证号:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo["card_num"]); ?></div>
                    </div>
                </div>

                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">手机号:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo"><?php echo ($userInfo["tel"]); ?></div>
                    </div>
                </div>
                <!--党费缴纳至-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">党费缴纳至:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <?php if(($userInfo['join_time']) == "0000-00-00 00:00:00"): ?>未缴纳过党费
                            <?php else: ?>
                                <?php echo substr($userInfo['fee_time'],0,7); endif; ?>

                        </div>
                    </div>
                </div>
                <div class="layui-row text-right"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right"></div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <a href="<?php echo U('User/userEdit',array('id'=>$userInfo['id']));?>" class="btn btn-success">编辑</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    <!--</div>-->


<script>
    function iFrameHeight(f) {
        // f.src
        // var iframeWindow = document.getElementById('iframepage').contentWindow;
        // var currentHref = iframeWindow.document.location.href;
        // console.log(currentHref);
        var ifm= document.getElementById("iframepage");
        var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;
        if(ifm != null && subWeb != null) {
            ifm.height = subWeb.body.scrollHeight;
            ifm.width = subWeb.body.scrollWidth;
        }
    }

    function prev(){
        window.location.href = document.getElementById('iframepage').previousSrc;
    }
    // window.location.replace($("#iframepage").src());
    // window.location.href = $("#iframepage").src();
    // var ifm= document.getElementById("iframepage");
    // ifm.height=document.documentElement.clientHeight;
    $(".sidebar-title").live('click', function() {
        if ($(this).parent(".sidebar-nav").hasClass("sidebar-nav-fold")) {
            $(this).next().slideDown(200);
            $(this).parent(".sidebar-nav").removeClass("sidebar-nav-fold");
        } else {
            $(this).next().slideUp(200);
            $(this).parent(".sidebar-nav").addClass("sidebar-nav-fold");
        }
    });
</script>
</body>

</html>